<!doctype html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <link rel="icon" href="/favicon.png" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>%VITE_APP_TITLE%</title>
    <link rel="stylesheet" href="/src/style/modules/reset/index.scss" />
    <link rel="stylesheet" href="/src/style/modules/app-loading/index.scss" />
    <link rel="stylesheet" href="/src/style/modules/noscript/index.scss" />
  </head>
  <body>
    <div id="app"></div>
    <script type="module" src="/src/main.ts"></script>

    <div id="admin-core-app-loading">
      <div class="loader">
        <div class="loader-item left-side"></div>
        <div class="loader-item middle"></div>
        <div class="loader-item right-side"></div>
        <div class="move"></div>
      </div>
      <div class="loading-text">%VITE_APP_TITLE%</div>
    </div>

    <noscript class="noscript-container">
      <div class="noscript-content">
        <img src="/noscript.png" width="300" />
        <p>
          请检查是否允许本网站使用 Javascript
          来运行这个应用程序或者换一个浏览器试试吧。
        </p>
      </div>
    </noscript>

    <script>
      ;(function () {
        // 如果浏览器支持js，就显示加载动画，保证 noscript 标签和 loading 不会同时在页面显示
        const loadingElement = document.getElementById('admin-core-app-loading')
        if (loadingElement) {
          loadingElement.style.display = 'flex'
        }
      })()
    </script>
  </body>
</html>
